package com.ggb.reactive.domain.entity

import io.swagger.v3.oas.annotations.media.Schema
import lombok.AllArgsConstructor
import lombok.Builder
import lombok.Data
import lombok.NoArgsConstructor
import org.springframework.data.annotation.Id
import org.springframework.data.relational.core.mapping.Table
import java.time.Instant


@Table("user")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(title="用户实体 User")

data class User(
    @Id
    var id: Long? = null,
    @Schema(description = "姓名")
    var name: String? = null,
    @Schema(description = "手机号")
    var phone: String? = null,
    @Schema(description = "微信用户唯一标识")
    var openid: String? = null,
    @Schema(description = "性别 0 女 1 男")
    var sex: String? = null,
    @Schema(description = "份证号")
    var idNumber: String? = null,
    @Schema(description = "头像")
    var avatar: String? = null,
    @Schema(description = "注册时间")
    var createTime: Instant? = null
)
